package com.swsc.ai.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

/**
 * @describe: 取数服务日志表
 * @author: 容若
 * @created: 2024-06-20 13:11
 */
@Getter
@Setter
@TableName("ai_obtain_data")
public class AiObtainDataEntity{
    /**
     * 任务id，唯一标识
     */
    private String taskId;

    /**
     * 状态：0-未完成 1-已完成
     */
    private Integer status;

    /**
     * 创建时间
     */
    private Date createDate;

    /**
     * 创建时间
     */
    private Date modifyDate;

    /**
     * hive表名
     */
    private String tableName;

    /**
     * ftp存储路径
     */
    private String ftpPath;

    /**
     * 分区字段yyyyMMdd
     */
    private Long partitionInfo;

    /**
     * 交易日yyyyMMdd
     */
    private Long tradeDate;

    /**
     * 分区字段yyyyMMdd
     */
    private String sysNameEn;
    /**
     * 分区字段yyyyMMdd
     */
    private String sysNameCh;

    public AiObtainDataEntity() {}
    public AiObtainDataEntity(String taskId, Integer status, Date createDate, Date modifyDate, String tableName, String ftpPath, Long partitionInfo, Long tradeDate, String sysNameEn, String sysNameCh) {
        this.taskId = taskId;
        this.status = status;
        this.createDate = createDate;
        this.modifyDate = modifyDate;
        this.tableName = tableName;
        this.ftpPath = ftpPath;
        this.partitionInfo = partitionInfo;
        this.tradeDate = tradeDate;
        this.sysNameEn = sysNameEn;
        this.sysNameCh = sysNameCh;
    }
}
